#include<bits/stdc++.h> 
using namespace std;
map<string,int> mp;
int main()
{
	string ss;
	while(cin>>ss)
		mp[ss]=1;
	for(auto iter=mp.begin();iter!=mp.end();iter++)
		cout<<iter->first<<endl;
    return 0;
}
